package com.kgc.service.impl;

import com.kgc.dao.UserDao;
import com.kgc.dao.impl.UserDaoImpl;
import com.kgc.entity.User;
import com.kgc.service.UserService;

import java.util.List;

/**
 * <h3>项目名称:demo03050</h3>
 * <p>本API描述:用户业务逻辑处理实现类</p>
 * <p>@author : AliyZhang</p>
 * <p>@date : 2021-03-08 12:51</p>
 **/
public class UserServiceImpl implements UserService {
    private UserDao userDao=new UserDaoImpl();
    @Override
    public User queryUserExistsByName(String userName) {
        return userDao.queryUserExistsByName(userName);
    }

    @Override
    public User queryUserById(int id) {
        return userDao.queryUserById(id);
    }

    @Override
    public List<User> queryUsers() {
        return userDao.queryUsers();
    }
}
